<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">	
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
<head>
<title>Страница  Гостевая книга</title>

</head>
<body>
	
<h1>Гостевая книга</h1>
 
   <h2>Добавить комментарий</h2>
<p><table cellspacing="2" cellpadding="2" border="0"><form action=index.php?add=1 method="post"><tr>

<div class=c><div class=cn><b> <? echo $row["name"] ?> </b> 
   пишет <? echo $row["datetime"] ?>:</div><? echo $row["message"]?></div>
  
  

  <h2>Комментировать</h2>
<p><table cellspacing="2" cellpadding="2" border="0">
<form action='.PATH.'coment.php?addcoment='.$messageid .'method="post" name="addcom"><tr>

<td>Имя<font color=#880000>*</font>:</td>
<td><input type=text name="comentname" size=30 maxlength=100 value= <? echo $comentname ?>>;
    echo '</td>
</tr><tr>

<td>Сообщение<font color=#880000>*</font>:</td>
<td><textarea cols=40 rows=5 name="coment"> <? echo $coment ?> </textarea>';
  
  </td>
</tr><tr>
<td>&nbsp;</td>
<td><small><font color=#880000>*</font>&nbsp;&#151; Обязательные поля</small></td>
</tr><tr>
<td>&nbsp;</td>
<td><input name="sb" type=submit value="Добавить коментарий"></td>
<td><input name="messageid" type=hidden value= <? echo $messageid ?>> </td>

</form></tr>
</table>
</body>



;